import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Administrator
 * Date: 2024-03-10
 * Time: 14:54
 */


class Date1 {
    public int year;
    public int month;
    public int day;

    public void printDate1(int year,int month,int day){
        System.out.println( this.year + "年" + this.month + "月" + this.day + "日");
    }
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        Date1 date = new Date1();
        int year = scan.nextInt();
        int month = scan.nextInt();
        int day = scan.nextInt();
        date.printDate1(year,month,day);
    }
}






class Date2 {
    public int year;
    public int month;
    public int day;

    public void setDate2(int y, int m, int d){
        year = y;
        month = m;
        day = d;
    }
    public void printDate2(){
        System.out.println( this.year + "年" + this.month + "月" + this.day + "日");
    }
    public static void main(String[] args) {
        Date2 date = new Date2();
        date.setDate2(2024 , 3 , 10);
        date.printDate2();
    }
}






class Date3 {
        public int year;
        public int month;
        public int day;

        public void setDate3(int year, int month, int day){
            this.year = year;
            this.month = month;
            this.day = day;
        }
        public void printDate3(){
            System.out.println( this.year + "年" + this.month + "月" + this.day + "日");
        }
        public static void main(String[] args) {
            Date3 date = new Date3();
            date.setDate3(2024 , 3 , 10);
            date.printDate3();
        }
    }






 class Date4 {
    public int year;
    public int month;
    public int day;

    public void setDate3(int year, int month, int day){
        this.year = year;
        this.month = month;
        this.day = day;
    }
    public void printDate3(){
        System.out.println( this.year + "年" + this.month + "月" + this.day + "日");
    }
    public static void main(String[] args) {
        Date4 date = new Date4();
        date.setDate3(2024 , 3 , 10);
        date.setDate3(2022 , 2 , 10);
        date.printDate3();
        date.printDate3();
    }
}






public class Date {
    public int year;
    public int month;
    public int day;

    public Date(){
        System.out.println("编译器自动调用一个无参的构造方法");
    }

    public Date(int year, int month, int day){
        this.year = year;
        this.month = month;
        this.day = day;
        System.out.println("编译器调用三个参数的构造方式进行传参");
    }

    public static void main(String[] args) {
        Date date = new Date();
        Date date2 = new Date(2024 , 10 , 1);
    }
}